package com.hfy.kandian.service;

import com.hfy.kandian.dao.command.UserInfoCommand;
import com.hfy.kandian.dao.representation.UserRepresentation;
import com.hfy.kandian.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author HAN XIAOYANG
 * @since 2020-12-30
 */
public interface UserService extends IService<User> {

    int loginByPhoneNum(String userPhone, String userPassword);

    int register(UserInfoCommand userInfoCommand);

    int modify(UserInfoCommand userInfoCommand);

    UserRepresentation findById(int userId);

    int loginBySMSCode(String phoneNum);
}
